package com.path;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/20 19:39
 * @since JDK 1.8
 */
@RestController
public class PathController {

    @GetMapping("/path")
    public JSONObject pathController(){
        JSONObject jsonObject=new JSONObject();
        String path=System.getProperty("user.dir");
        jsonObject.put("path",path);
        return jsonObject;
    }
}
